// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from "vue";
import App from "./App";
import router from "./router";
import store from "./vuex/vuex";
import Print from "./common/print";
import sidebar from "./Sidebar";
Vue.component(sidebar.name, sidebar);
console.log(text1, "webpack dev");
//development
// import $ from 'jquery'
import "./element/index";
import http from "@/http/request";

import { message } from "@/common/util";
// import mavonEditor from "mavon-editor"
// import "mavon-editor/dist/css/index.css"
// Vue.use(mavonEditor)
// Vue.component("VJsoneditor", VJsoneditor)
Vue.prototype.$http = http;
import "./mock/index";

Vue.prototype.$message = message;
Vue.config.devtools = true;
Vue.config.productionTip = false;
Vue.config.performance = true;
//window.scrollTo({top:100,behavior:'smooth'}) 缓慢滑动上去
// Vue.prototype.api=api
// 将所有接口放入api对象中，然后将api对象export出去
// 避免每个涉及到数据请求的文件都引入apis.js文件
// 在main.js文件将apis.js文件引入
/* eslint-disable no-new */
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
